using System.Runtime.CompilerServices;

namespace Catastrophe.Initialize
{
	public class BaseResponse<T>
	{
		public string Message { get; set; }

		public int StatusCode { get; set; }

		public bool Success { get; set; }

		public T Content { get; set; }

		public object Tag { get; set; }

		public override string ToString()
		{
			string result;
			if (!this.Success)
			{
				DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(27, 3);
				defaultInterpolatedStringHandler.AppendLiteral("Result:");
				defaultInterpolatedStringHandler.AppendFormatted(this.Success);
				defaultInterpolatedStringHandler.AppendLiteral(" ErrorCode:");
				defaultInterpolatedStringHandler.AppendFormatted(this.StatusCode);
				defaultInterpolatedStringHandler.AppendLiteral(" Message:");
				defaultInterpolatedStringHandler.AppendFormatted(this.Message);
				result = defaultInterpolatedStringHandler.ToStringAndClear();
			}
			else
			{
				DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(18, 2);
				defaultInterpolatedStringHandler.AppendLiteral("Result:");
				defaultInterpolatedStringHandler.AppendFormatted(this.Success);
				defaultInterpolatedStringHandler.AppendLiteral(" ErrorCode:");
				defaultInterpolatedStringHandler.AppendFormatted(this.StatusCode);
				result = defaultInterpolatedStringHandler.ToStringAndClear();
			}
			return result;
		}
	}
	public class BaseResponse
	{
		public string Message { get; set; }

		public int StatusCode { get; set; }

		public bool Success { get; set; }

		public object Tag { get; set; }

		public override string ToString()
		{
			string result;
			if (!this.Success)
			{
				DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(27, 3);
				defaultInterpolatedStringHandler.AppendLiteral("Result:");
				defaultInterpolatedStringHandler.AppendFormatted(this.Success);
				defaultInterpolatedStringHandler.AppendLiteral(" ErrorCode:");
				defaultInterpolatedStringHandler.AppendFormatted(this.StatusCode);
				defaultInterpolatedStringHandler.AppendLiteral(" Message:");
				defaultInterpolatedStringHandler.AppendFormatted(this.Message);
				result = defaultInterpolatedStringHandler.ToStringAndClear();
			}
			else
			{
				DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(18, 2);
				defaultInterpolatedStringHandler.AppendLiteral("Result:");
				defaultInterpolatedStringHandler.AppendFormatted(this.Success);
				defaultInterpolatedStringHandler.AppendLiteral(" ErrorCode:");
				defaultInterpolatedStringHandler.AppendFormatted(this.StatusCode);
				result = defaultInterpolatedStringHandler.ToStringAndClear();
			}
			return result;
		}
	}
}
